group '{{groupId}}'
version '{{artifactVersion}}'

wrapper {
    gradleVersion = '4.9'
    distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}

buildscript {
    ext.kotlin_version = '1.3.41'

    repositories {
        mavenCentral()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

apply plugin: 'kotlin'

repositories {
    mavenCentral()
}

test {
    useJUnitPlatform()
}

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
    compile "com.squareup.moshi:moshi-kotlin:1.8.0"
    compile "com.squareup.moshi:moshi-adapters:1.8.0"
    {{#gson}}
    implementation "com.google.code.gson:gson:2.8.5"
    {{/gson}}
    compile "com.squareup.okhttp3:okhttp:4.0.1"
    {{#threetenbp}}
    compile "org.threeten:threetenbp:1.3.8"
    {{/threetenbp}}
    testImplementation "io.kotlintest:kotlintest-runner-junit5:3.1.0"
}
